﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Muel.TypeScriptFacade.Core
{
    /// <summary>
    /// Objects holding domain-relative URLs for .asmx files against the WebService class that contains them
    /// </summary>
    public class TypeScriptServiceUrlHint
    {
        /// <summary>
        /// Instantiates a new service URL hint
        /// </summary>
        /// <param name="serviceUrl">The domain-relative URL for the service, e.g. Services/Mathematics/FractionService.asmx</param>
        /// <param name="serviceClassFullName">The full name for the WebService class, including namespace</param>
        public TypeScriptServiceUrlHint(string serviceUrl, string serviceClassFullName)
        {
            this.ServiceUrl = serviceUrl;
            this.ServiceClassFullName = serviceClassFullName;
        }

        /// <summary>
        /// Gets the full name for the WebService class, including namespace
        /// </summary>
        public string ServiceClassFullName { get; private set; }

        /// <summary>
        /// Gets the domain-relative URL for the service, e.g. Services/Mathematics/FractionService.asmx
        /// </summary>
        public string ServiceUrl { get; private set; }
    }
}
